package al.softsynergy.auk.data.entries;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table(name="ANKESA")
public class Ankesa  implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -1736107564193739661L;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Integer id;
	
	private String pershkrimi;
	
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="DATA_ANKESE")
	private Date dataAnkese;
	@Column(length=30)
	private String emri;
	@Column(length=30)
	private String mbiemri;
	@Column(length=100)
	private String adresa;
	@Column(length=20)
	private String tel;
	
	@ManyToOne
	@JoinColumn(name="ANKESA_LLOJ_ID")
	private AnkesaLloj ankesaLloj;
	
	@Temporal(TemporalType.TIMESTAMP)
	private Date dataRegj;
	
	@Column(length=15)
	private String user;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getPershkrimi() {
		return pershkrimi;
	}

	public void setPershkrimi(String pershkrimi) {
		this.pershkrimi = pershkrimi;
	}

	public Date getDataAnkese() {
		return dataAnkese;
	}

	public void setDataAnkese(Date dataAnkese) {
		this.dataAnkese = dataAnkese;
	}

	public String getEmri() {
		return emri;
	}

	public void setEmri(String emri) {
		this.emri = emri;
	}

	public String getMbiemri() {
		return mbiemri;
	}

	public void setMbiemri(String mbiemri) {
		this.mbiemri = mbiemri;
	}

	public String getAdresa() {
		return adresa;
	}

	public void setAdresa(String adresa) {
		this.adresa = adresa;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public AnkesaLloj getAnkesaLloj() {
		return ankesaLloj;
	}

	public void setAnkesaLloj(AnkesaLloj ankesaLloj) {
		this.ankesaLloj = ankesaLloj;
	}

	public Date getDataRegj() {
		return dataRegj;
	}

	public void setDataRegj(Date dataRegj) {
		this.dataRegj = dataRegj;
	}

	public String getUser() {
		return user;
	}

	public void setUser(String user) {
		this.user = user;
	}
	
	
	
	
}
